.content-box {
  height: 100vh;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.index-content {
  // background: url("../images/index-bg.jpg") no-repeat;
  // background-size: 100% 100%;
  .index-title{
    width: 100%;
    position: absolute;left: 50%;top: 0;z-index: 20; transform: translate(-50%,0);
  }
  .index-bg{
    width: 100%;height: 100%;
  }
  .upgrade-btn {
    position: absolute;
    left: 50%;
    bottom: 5.5%;
    z-index: 999;
    transform: translateX(-50%);
  }
}

.icon-prize{
  width: 44px;height: 44px;display: block;
  background: url("../images/icon-prize.png") no-repeat;
  background-size: cover;
  position: absolute;
  bottom: 16.85%;right:3.889%;z-index: 9909;
  filter: drop-shadow(3px 2px 3px rgba(0,0,0,0.2));
}

.upgrade-btn {
  width: 100%;
  max-width: 450px;
  margin-left: auto;
  margin-right: auto;
  display: block;
  position: relative;
  &.active {
    .upgrade-btn-img {
      opacity: 0;
    }
    background: url("../images/upgrade-btn-active.png") no-repeat;
    background-size: 100% 100%;
  }
  .hand {
    width: 80px;
    height: 80px;
    background: url("../images/hand.png") no-repeat;
    background-size: cover;
    position: absolute;
    right: 10%;
    bottom: -15px;
    &.animate{
      &::after{
        content: '';
        background: url("../images/hand-active.png") no-repeat;
        transform: scale(.5);
        background-size: cover;
        animation: handMove 1.25s linear infinite;
        position: absolute;left: 0;width: 100%;top: 0;height: 100%;
      }   
    }
  }
}

@keyframes handMove {
  0% { transform: scale(0.5); opacity: 0}
  100% { transform: scale(1.25);opacity: 1;}
  // 100% { transform: scale(0.75);opacity: 0;}
}

.bank-select-content {
  background: url("../images/bank-bg.jpg") no-repeat;
  background-size: 100% 100%;
}

.bank-list {
  width: 91.55%;
  max-width: 480px;
  margin-left: auto;margin-right: auto;
  padding-bottom: 25px;

  // position: absolute;
  // left: 50%;
  // bottom: 12.5%;
  // transform: translateX(-50%);
  .text{
    width: 60%;margin:0 auto 15px auto;
    // text-align: center;font-size: 16px;color: #405ab1;
  }
  ul {
    padding: 0 5px;
  }

  li {
    width: 50%;
    float: left;

    a {
      display: block;
      padding: 7px;
    }

    &.more-item {
      a {
        padding: 7px 0;
        margin-left: -7px;
        margin-right: -6px;
      }
    }
  }
}

.upgrade-content {
  background: url("../images/upgrade-bg.jpg") no-repeat;
  background-size: 100% 100%;
  .btn-box {
    position: absolute;z-index: 9999;
    left: 0;
    right: 0;
    bottom: 20px;
    text-align: center;
    .rule-btn {
      width: 136px;
      height: 45px;
      background: url("../images/rule-btn.png") no-repeat;
      background-size: 100% auto;
      overflow: hidden;
      text-indent: -999px;
      display: inline-block;
      margin-top: 10px;
    }
  }
}
// .new-word-bg{
//   filter: grayscale(80%);
// }
.max-width-560 {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.new-word-upgrade {
  position: relative;
  margin-top: 10px;
  height: 61vh;
  display: flex;
  align-items: center;
  .inner {
    position: relative;
  }
  .new-word {
    width: 100%;
    left: 0;
    bottom: 0;
    z-index: 999;
    position: absolute;
    // width: 66.667%;z-index: 999;
    // transform: translate(-50%, 0);
    // left: 50%;
    // bottom: 18.629%;
    -webkit-perspective: 800px;
    perspective: 800px;
    -moz-perspective: 800px;
    .item {
      -webkit-transition: all 1s linear;
      transition: all 0.75s linear;
      -webkit-backface-visibility: hidden;
      backface-visibility: hidden;
    }

    .front {
      position: relative;
      -webkit-transform: rotateY(0);
      transform: rotateY(0);
      .lihgt,.light-radiation {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        top: 0;
        background-repeat: no-repeat;   
        background-size: cover;
        opacity: 0;    
        &.active{
          opacity: 1;
        }   
      }
      .lihgt{
        background-image: url("../images/light-big.png");z-index: -1;   
      }
      .light-radiation{
        background-image: url("../images/light-radiation.png");z-index: 12;
      }    
    }

    .back {
      position: absolute;
      width: 100%;
      left: 0;
      top: 0;
      bottom: 0;
      z-index: 10;
      -webkit-transform: rotateY(180deg);
      transform: rotateY(180deg);
      display: flex;
      justify-content: center;
      align-items: center;
      text-align: center;
      color: #fff;

      h3 {
        font-size: 16px;
      }
    }

    .mask {
      position: absolute;
      width: 66.667%;
      height: 65.227%;
      left: 17.5%;
      bottom: 21.136%;
      z-index: 99;
      // transition: all 0.25s linear;   
      .mask-img {
        width: 100%;
        height: 100%;
        overflow: hidden;
        transition: height 0.25s linear;
        // background: #fff;      
        background-repeat: no-repeat;
        background-size: 100% auto;
        // opacity: 0.5;
        //transform: rotate(-9deg);
        img{
          width: 100%;height: auto;
          //transform: rotate(9deg);
        }
      }
      .bot-light{
        position: absolute;bottom: -8.75%;opacity: 0;
        transition: all 0.25s linear;
        &.change{
          transform: rotate(9deg);
          //transform: translate();
        }
      }
    }
    &.active {
      .mask {
        display: none;
      }
      .front {
        -webkit-transform: rotateY(-180deg);
        transform: rotateY(-180deg);
      }
      .back {
        -webkit-transform: rotateY(0);
        transform: rotateY(0);
      }
    }
  }
}

.new-word-upgrade2 {
  position: relative;
  margin-top: 10px;
  height: 61vh;
  display: flex;
  align-items: center;
  .inner {
    position: relative;
  }
  .new-word {
    width: 100%;
    left: 0;
    bottom: 0;
    z-index: 999;
    position: absolute;
    // width: 66.667%;z-index: 999;
    // transform: translate(-50%, 0);
    // left: 50%;
    // bottom: 18.629%;
    -webkit-perspective: 800px;
    perspective: 800px;
    -moz-perspective: 800px;
    .item {
      -webkit-transition: all 1s linear;
      transition: all 0.75s linear;
      -webkit-backface-visibility: hidden;
      backface-visibility: hidden;
    }

    .front {
      position: relative;
      -webkit-transform: rotateY(0);
      transform: rotateY(0);
      .lihgt,.light-radiation {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        top: 0;
        background-repeat: no-repeat;   
        background-size: cover;
        opacity: 0;    
        &.active{
          opacity: 1;
        }   
      }
      .lihgt{
        background-image: url("../images/light-big.png");z-index: -1;   
      }
      .light-radiation{
        background-image: url("../images/light-radiation.png");z-index: 12;
      }    
    }

    .back {
      position: absolute;
      width: 100%;
      left: 0;
      top: 0;
      bottom: 0;
      z-index: 10;
      -webkit-transform: rotateY(180deg);
      transform: rotateY(180deg);
      display: flex;
      justify-content: center;
      align-items: center;
      text-align: center;
      color: #fff;

      h3 {
        font-size: 16px;
      }
    }

    .mask {
      position: absolute;width: 100%;height: 100%;left: 0; top: 0;
      //background: rgba($color: #000000, $alpha: 0.5);
      // width: 66.667%;
      // height: 65.227%;
      // left: 17.5%;
      // bottom: 21.136%;
      z-index: 99;
      .mask-img {
        width: 100%;
        height: 100%;
        overflow: hidden;
        transition: all 0.25s linear;
        //background: rgba($color: #ffffff, $alpha: 0.3);      
        // background-repeat: no-repeat;
        // background-size: 100% auto;
        // opacity: 0.5;
        transform: rotate(-9deg);
        img{
          width: 100%;height: auto;
          transform: rotate(9deg);
        }
      }
      .bot-light{
        position: absolute;bottom: -5.75%;
        transition: all 0.25s linear;
        &.change{
          transform: rotate(9deg);
          //transform: translate();
        }
      }
    }
    &.active {
      .mask {
        display: none;
      }
      .front {
        -webkit-transform: rotateY(-180deg);
        transform: rotateY(-180deg);
      }
      .back {
        -webkit-transform: rotateY(0);
        transform: rotateY(0);
      }
    }
  }
}

.prize-content {
  background: url("../images/prize-bg.jpg") no-repeat;
  background-size: 100% 100%;
}
.prize-list {
  width: 81.55%;
  margin-left: auto;
  margin-right: auto;
  padding-top: 24px;
  li {
    padding: 12px 0;
  }
}

.lottery-tips-content{
  background: url("../images/lottery-tips-bg.jpg") no-repeat;
  background-size: 100% 100%;
}

.activities-cont{
  width: 79.333%; max-width:480px; margin-left: auto;margin-right: auto; text-align: center;
  .item{
    border-radius: 8px;margin-bottom: 10px;
    img{
      border-radius: 8px;
    }
    box-shadow: 5px 10px 12px rgba(13,59,144,0.2);
  }
  .tips{
    font-size: 1.4rem;
  }
  .text{
    font-size: 1.6rem;color: #fff;display: inline-block;padding: 0 20px 0 25px;
    //background:#1743bf;
    background-image: linear-gradient(to right,rgba(89,92,199,0),rgba(89,92,199,1),rgba(19,63,190,1),rgba(19,63,190,0));
  }
}

.align-c{
  text-align:center;
}

.btn-bot{
  .tips{
    line-height: 1.2;color: #999;
  }
}

.download-btn{
  width: 33%;margin-left: auto;margin-right: auto;display: block;
}

.lottery-wrap {
  height: 100%;
  box-sizing: border-box;
  padding-bottom: 9%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content:flex-start;
  &.space-between{
    justify-content:space-between;
  }
}

.lottery-cont {
  width: 90%;
  margin-left: auto;
  margin-right: auto;
  margin-top: 10px;
  text-align: center;
  .text {
    font-size: 16px;
    color: #0a30af;
  }
}
.lottery-list {
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  &.on{
    li{
      &.item .awards-img{
        &::after {display: block;}
      }     
    }
  }
  li {
    width: 33.333%;
    padding: 5px;
    box-sizing: border-box;
    float: left;
    &.item{
      .awards-img{
        &::after {
          content: "";
          position: absolute;
          left: 0;
          top: 0;
          right: 0;
          bottom: 0;
          z-index: 10;
          background-color: #000;
          opacity: 0.4;
          border-radius: 6px;
          display: none;
        }
      }
    }
    .awards-img {
      position: relative;     
    }
  }
}

.lottery-list li.opcity50 .awards-img::after{
	opacity: 0.5;
}
.lottery-list li.active .awards-img::after{
	opacity: 0;
}

.btn-bar {
  width: 50%;
  margin-left: auto;
  margin-right: auto;
}

#canvas {
  pointer-events: none;
  position: fixed;
  top: 0;
}

@media screen and (min-device-width: 390px) and (max-device-height: 844px) {
 
}

@media screen and (max-width: 375px) {
  .upgrade-content {
    padding: 0 2%;
  }
  .new-word-upgrade {
    height: 62vh;
  }
  .upgrade-content {
    .btn-box {
      .upgrade-btn {
        width: 96%;
      }
    }
  }
}

@media screen and (max-width:320px) {
  .icon-prize{ 
    bottom: 15.85%;right:2.889%;
  }
}
